/*
 * GPS_Multiply_By.h
 *
 *  Created on: 2015-10-20
 *      Author: Administrator
 */

#ifndef GPS_MULTIPLY_BY_H_
#define GPS_MULTIPLY_BY_H_

#define MULTIPLY_BY_10(x)      (((x)<<3)+((x)<<1))//x*8+x*2
#define MULTIPLY_BY_60(x)      (((x)<<6)-((x)<<2))//x*64-x*4
#define MULTIPLY_BY_100(x)     (((x)<<6)+((x)<<5)+((x)<<2))//x*64+x*32+x*4
#define MULTIPLY_BY_1000(x)    (((x)<<10)-((x)<<4)-((x)<<3))//x*1024-x*16-x*8
#define MULTIPLY_BY_10000(x)   (((x)<<13)+((x)<<10)+((x)<<9)+((x)<<8)+((x)<<4))//x*8192+x*1024+x*512+x*256+x*16



#endif /* GPS_MULTIPLY_BY_H_ */
